package com.lz.manage.model.dto.folderInfo;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import com.lz.manage.model.domain.FolderInfo;
/**
 * 文件夹信息Vo对象 t_folder_info
 *
 * @author YY
 * @date 2025-07-17
 */
@Data
public class FolderInfoInsert implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 文件夹编号 */
    private Long folderId;

    /** 父级 */
    private String parentId;

    /** 文件夹名称 */
    private String folderName;

    /** 排序权重 */
    private Long sortNum;

    /** 备注 */
    private String remark;

    /**
     * 对象转封装类
     *
     * @param folderInfoInsert 插入对象
     * @return FolderInfoInsert
     */
    public static FolderInfo insertToObj(FolderInfoInsert folderInfoInsert) {
        if (folderInfoInsert == null) {
            return null;
        }
        FolderInfo folderInfo = new FolderInfo();
        BeanUtils.copyProperties(folderInfoInsert, folderInfo);
        return folderInfo;
    }
}
